package com.opesoft.app.system.biz;

import java.util.List;

import javax.persistence.EntityManager;

import org.apache.log4j.Logger;

import com.opesoft.app.system.model.DictionaryConfig;
import com.opesoft.fw.core.exception.MessageException;
import com.opesoft.pf.jpa.SessionManager;
import com.opesoft.pf.jpa.SimpleBO;
import com.opesoft.pf.page.ListCtrl;

public class DictionaryConfigBO extends SimpleBO<DictionaryConfig>
{
	static Logger log=Logger.getLogger(DictionaryConfigBO.class);



	static public List list(String ql,ListCtrl lc)
	{
		EntityManager em=SessionManager.open();

		Object obj=em.createQuery("select COUNT(x) from ( select x from DictionaryConfig x ) ").getSingleResult();

		log.debug(obj);

		return null;

		/*
		 * 
		 * List<DictionaryConfig> list=em.createQuery("select x from DictionaryConfig x order by x.id desc").getResultList();
		 * 
		 * List result=new ArrayList();
		 * 
		 * for(DictionaryConfig dc : list) { result.add(new Object[]{dc.getId(),dc.getCode(),dc.getName(),dc.getRemark()}); }
		 * 
		 * return result;
		 */
	}




}
